/* Check JER_Bitmatrix::CreateIdentity().
   JER_Bitmatrix() already tested. */
#include <stdio.h>
#include "jerasure.h"
#include "liberation.h"

int main( int argc, char** argv )
{
	int *old_bitmatrix;
	int i,j;
	int m = atoi( argv[1] );
	int k = atoi( argv[2] );
	int w = atoi( argv[3] );
	
	old_bitmatrix = (int*) malloc( sizeof(int) * k*w * k*w );
	for( i = 0; i < k*w; i++ )
	{
		for( j = 0; j < k*w; j++ )
		{
				old_bitmatrix[i*k*w+j] = ( i == j ) ? 1 : 0;
		}
	}
	if( old_bitmatrix != NULL )
		jerasure_print_bitmatrix( old_bitmatrix, k*w, k*w, w );

	return 0;
}
